gtktext: Shuffle the places doing IM reset
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Aug 2022 22:55:30 +0000 (00:55 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Aug 2022 22:55:30 +0000 (00:55 +0200)
commit9e29739e6676bdb313aa19ce54c9da6c39cd4778
tree24e0278764323ff4147a37f2f6cef21418fa2380
parent82395e73ad035fc5350261e93174b847125a87cc
gtktext: Shuffle the places doing IM reset

During text widget manipulation (inserting or deleting text via keyboard)
the IM context is reset somewhat early, before the actual change took place.
This makes IM lag behind in terms of surrounding text and cursor position.

Shuffle these IM reset calls so that they happen after the changes, and
ensure that the IM is actually reset, since that is currently toggled on
a pretty narrow set of circumstances.
gtk/gtktext.c